<#assign module="order"/>

<@override name="header">
<link href="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.css" rel="stylesheet" type="text/css" />
<style>
	
	body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote,button {
		padding:0;
		margin:0; 
	}
   .triangle{ width:0; height:0; border-width:20px;  border-style:solid dashed dashed; border-color:transparent  #DDDDDD transparent  transparent ; font-size:0; line-height:0;position:relative;top:27px;left:-41px}
   .bubble{ width:300px; height:100px; border:1px solid #DDDDDD; position:relative;left:-80px;}
   .min_triangle{display:block; border-width:20px; position:absolute; bottom:34px; left:-37px;border-style:solid dashed dashed; border-color:transparent  #FFF transparent transparent;font-size:0; line-height:0;}
 
  .yj{
    border: 2px solid #DDDDDD;
    -moz-border-radius: 15px; 
    -webkit-border-radius: 15px; 
    border-radius:15px;           
   }
   
	.schedule-box {
		width:1000px;
		margin:0 auto;
		position:relative;
		font-family:"微软雅黑";
	}
	.sc-t1, .sc-t2, .sc-t3, .sc-t4, .sc-t5 {
	    margin: 0 auto;
	    overflow: hidden;
	    width: 1000px;
	    height:40px;
	    margin-top: 80px;
	    background-repeat: no-repeat;
	    background-image: url(${ctx}/assets/css/images/schedule_bg.png);
	}
	.sc-t1 {
		background-position:-9px -16px;
	}
	.sc-t2 {
		background-position:-9px -64px;
	}
	.sc-t3 {
		background-position:-9px -111px;
	}
	.sc-t4 {
		background-position:-9px -158px;
	}
	.sc-t5 {
		background-position:-9px -205px;
	}
	.schedule-box ul {
		top:-50px;
		position:absolute;
	}
	.sc-text1 {
		width:86px;
		height:46px;
		background:url(${ctx}/assets/css/images/sc-text1_03.png)  no-repeat;
	}
	.schedule-box ul {
		width:106%;
	}
	.schedule-box li:nth-child(5n) {
	    margin-right:0;
	}
	.schedule-box ul li {
		float:left;
		width:156px;
		color:#fff;
		margin-left:10px;
		line-height:36px;
		margin-right:57px;
		list-style-type:none;
	}
	.schedule-box li b {
		font-size:14px;
		width:86px;
		display:block;
		text-align:center;
		font-weight:normal;
	}
	.schedule-box li.l-Blue {
		background:url(${ctx}/assets/css/images/l-Blue_bg_03.png) no-repeat;
	}
	.sc-time { 
		width:102%;
	}
	.sc-time span:nth-child(5n) {
	    margin-right:0;
	}
	.sc-time span {
		color:#0094ff;
		float:left;
		width:180px;
		margin-top:8px;
		margin-left:-20px;
		margin-right:54px;
		text-align:center;
	}
	
	.list{
	 display:inline-block;
	 list-style:none; 
	}
	.list-background{
	  background:#FAFAFA;
	}
	.font-size{
	 font-size:14px;
	}
</style>
</@override>
<@override name="body">

	<div class="row" id="realMap">
	
		<div class="col-sm-12">
		   <div class="col-sm-4" style="height:40px;">
		    	<div style="line-height:40px; width:400px;">
			        <li style="display:inline-block;"><a href="${ctx}/freight/freightList">货车订单</a>/</li>
				    <li style="display:inline-block;">当前单号： ${order.orderNo?if_exists}/</li>
				    <li style="display:inline-block;"><a href="javascript:;" onclick="window.history.go(-1);">返回</a> </li>
				</div>  
		    </div>
		    <div class="col-sm-4" style="height:40px; z-index:8888;margin:0 auto;">
		    	<div style="line-height:40px; background:#FAFAFA" id="moreDetail">
			        <li style="list-style:none;" id="first">
			           <div class="row">
			           		<div class="col-sm-10" style="padding-left:20px;">下单时间：${order.orderStatusList[0].created?string('MM月dd HH:mm')}<span >${order.orderStatusList[0].memo?if_exists}</span>
			           		</div>
			           		<div class="col-sm-1"><img class="more"  src="${ctx}/assets/img/down.png"/>
			           		</div>
			           </div>
		       		</li>
				</div>  
		    </div>
		     <div class="col-sm-4" style="height:40px; z-index:1000;">
		    	<div style="line-height:40px;">
			        <li style="list-style:none;">
			           <div class="row">
			           		<div style="display:none;display:inline-block;"  id="orbit">订单轨迹
			           		 <input type="button" id="playcar"  onclick="play()" class="button button-pill button-flat-blue button-tiny" value="开始回放" />
			           		 <input type="button" id="resetcar"  onclick="reset()" class="button button-pill button-flat button-tiny" value="重置"  />
			           		 <input type="button" id="distancetool"  class="button button-pill button-flat-action button-tiny" value="测距"  />
			           		  
			           		<!--<div class="col-md-1" style="width:60px;">行驶中的轨迹:</div><div class="col-md-1" style="width:50px;height:5px;margin-top:9px;background-color:red;"></div><span class="col-md-1" id="run_distance_span"></span>
							<div class="col-md-1" style="width:60px;">等待中的轨迹:</div><div class="col-md-1" style="width:50px;height:5px;margin-top:9px;background-color:#ff8a18;"></div><span class="col-md-1" id="wait_distance_span"></span>
							-->
			           		</div>
			           		
			           </div>
		       		</li>
				</div>  
		    </div>
		    <div id="map" class="<#if order.status==5>col-sm-10<#else>col-sm-12</#if>" style="height:400px;">
		    </div>
		    <div class="col-sm-2" style="<#if order.status!=5>display:none</#if>">
		      <div class="panel panel-default">
		        	<#if order.treatment>
						<div id="points_div" style="overflow-y:auto;max-height:400px;">
			             	
			            </div>
		            <#else>	
		            	<div class="panel-body">
			             	暂无轨迹详情
			            </div>
		            </#if>
		        </div>
		    </div>
		</div>
		</div>
		<div class="row" style="margin-top:20px;">
		    <div class="col-sm-6">
	       		<div class="panel panel-default" >
				   <div class="panel-heading" style="background:#FAFAFA;">
				         <center> <span>订单信息</span></center>
				   </div>
				   <ul class="list-group">
				        <li class="list-group-item">客户姓名:&nbsp;&nbsp;&nbsp; <span>${order.passengerName?if_exists}</span></li>
				        <li class="list-group-item">客户手机:&nbsp;&nbsp;&nbsp; <span>${order.passengerPhone?if_exists}</span></li>
				       	<li class="list-group-item">所属公司: &nbsp;&nbsp;&nbsp; <span>${order.companyName?if_exists}<span></li>
				        <li class="list-group-item">预约时间:&nbsp;&nbsp;&nbsp; <span>${order.startTime?string('yyyy-MM-dd HH:mm')}</span></li>
				        <li class="list-group-item">货车类型:&nbsp;&nbsp;&nbsp; <span>${order.truckTypeName?if_exists}<#if order.truckType??&&order.truckType.cangointotown>--入城</#if></span></li>
				  		<li class="list-group-item">订单来源: &nbsp;&nbsp;&nbsp;<span>${order.channelName?if_exists}</span></li>
				  		<li class="list-group-item">
				  			当前状态: &nbsp;&nbsp;&nbsp;
				  			<span>
					  			<#if order.cancelCause??>
									已销单
								<#elseif order.status==0>
									<a href="#" class="freight_detail_paidan" orderId="${order.id}" truckTypeName="${order.truckTypeName}" startAddress="${order.startAddress}" startLng="${order.startLng}" startLat="${order.startLat}" 	clientName="${order.passengerName}" clientPhone="${order.passengerPhone}">立即派单</a>
								<#elseif order.status==1>
									已派单
								<#elseif order.status==2>
									已接单
								<#elseif order.status==3||order.status==4>
									执行中
								<#elseif order.status==5>
									已完成
									<#if order.review>
										已评价
									<#else>
										未评价
									</#if>
								</#if>
						 	</span>
						 </li>
						 <li class="list-group-item">
							        是否回款: <font color="red"><#if order.receivedPay>是(${order.payMount}元)<#else>否</#if>&nbsp&nbsp&nbsp</font>
							        是否需要搬运: <font color="red"><#if order.flitting>是<#else>否</#if>&nbsp&nbsp&nbsp&nbsp</font>
							        是否回单:  <font color="red"><#if order.receipt>是<#else>否</#if></font>    
						 </li>
	                     <@shiro.hasPermission name='freightOrderFixPrice'>
                         <li class="list-group-item">是否定价: &nbsp;&nbsp;&nbsp;<span><#if order.fixedPrice?? && order.fixedPrice> 是 (${order.fixPriceMoney?if_exists}元)<#else>否 </#if></span></li>
						 </@shiro.hasPermission>
						  <li class="list-group-item">销单原因:&nbsp;&nbsp;&nbsp; <span>${order.cancelCause?if_exists}</span></li>
						 <li class="list-group-item">订单备注:&nbsp;&nbsp;&nbsp; 
					 		<#if (order.orderMemos??)&&(order.orderMemos?size!=0)>
								<textarea class="form-control"  readonly style="background-color:#FFFFFF;cursor:pointer;height:auto;" required>
								<#list order.orderMemos as memo>
								  ${memo_index+1}:${memo.memo?if_exists}
								</#list>
				        		</textarea>
				        	</#if>	  
					     </li>		
					     <li class="list-group-item">服务人员备注: &nbsp;&nbsp;  ${order.employMemo?if_exists}</li>
				   </ul>
				</div>
		    </div>
		    <div class="col-sm-6">
	       		<div class="panel panel-default" >
				   <div class="panel-heading" style="background:#FAFAFA;">
				         <center> <span>付款信息</span></center>
				   </div>
				   <ul class="list-group">
				   		<#if order.status==5>
					   	    <li class="list-group-item">预算费用:&nbsp;&nbsp;&nbsp; <font color="red">${order.budgetPay!0.0}元</font></span></li>
					        <li class="list-group-item">起步费用:&nbsp;&nbsp;&nbsp; <font color="red">￥${order.startPrice!0.0}元</font></li>
					        <li class="list-group-item">等候时间:&nbsp;&nbsp;&nbsp; <font color="red">${order.waitTime!0.0}分钟(￥${order.waitCost!0.0})元</font></span></li>
					        <li class="list-group-item">行驶时间:&nbsp;&nbsp;&nbsp; <font color="red">${order.runTime!0.0}分钟(￥${order.runTimePrice!0.0})元</font></span></li>
					        <li class="list-group-item">行驶里程:&nbsp;&nbsp;&nbsp; <font color="red">${order.mileage!0.0}公里(￥${order.mileagePrice!0.0})元</font></span></li>
					        <li class="list-group-item">
	                        	加收金额：
	                        	<font color="red">
	                        		￥<span>${order.yuanchengMoney+order.otherMoney}</span>
	                        	</font>
	                        	(远程费：${order.yuanchengMoney}，其他费：${order.otherMoney})
	                        </li>
					        <li class="list-group-item">过路费:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="red">￥${order.guoluMoney}元</font>(不参与提成)</span></li>
					        <@tiaojia>
					        <li class="list-group-item">
	                        	 服务人员调价：
	                        	(公里：${order.justKilometres!"-"}，费用：${order.justMoney!"-"})
	                        </li>
	                        </@tiaojia>
					        <li class="list-group-item">实收费用:&nbsp;&nbsp;&nbsp; <font color="red">${order.realPay!0.0}元</font></span>
								<@shiro.hasPermission name='modifycash'>
	                                <button id="modifyCash" class="btn btn-default btn-xs">修改</button>
								</@shiro.hasPermission>
							</li>
					        <li class="list-group-item">付款方式:&nbsp;&nbsp;
		                    	<#if order.preAndAfterPayType??>
	                        		${order.preAndAfterPayType}(${order.preAndAfterPayMoney?if_exists})
	                        	</#if>
		                    </li>
					    <#else>
					    	<li class="list-group-item">订单尚未完成，暂无付款信息。</li>
					    </#if>                
				   </ul>
				</div>
		    </div>
		</div>
		
		
	 
<!--派单-->
<div id="dialog_paidan" class="modal fade bs-example-modal-lg" style="z-index:99999;" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
  <div class="modal-dialog modal-lg" >
    <div class="modal-conten">
     	<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    	<div>
	    <ul class="modal-paid">
	    	<input type="hidden" id="paidanOrderId" />
	    	<input type="hidden" id="paidanOrderLng" />
	    	<input type="hidden" id="paidanOrderLat" />
	     	<li class="modal-dtu hidden-xs">
	     		<div id="allmap" style="height:560px;width:560px;">
	     		</div>
	     	</li>
	     	<li class="modal-lbiao">
	     		<div class="modal-kehu">
	     			<p>客户姓名：<span id="paidanClientName"></span></p>
	     			<p>客户电话：<span id="paidanClientPhone"></span></p>
	     			<p>预约地址：</p>
	     			<span id="paidanFromPlace"></span>
	     			<p>预约车型：<span id="truckTypeName"></span></p>
	     		</div>
	     		<div class="modal-sos">
	     			<div  class="row">
	     				<div class="col-xs-5">
	     					<span style="margin-left:10px;line-height: 2.3;"><b>推荐服务人员</b></span>
	     				</div>
	     				<div class="col-xs-7">
	     					<select id="distance" style="width:164px;height:40px;padding:0;margin-right:3px;" class="form-control">
								<option value="5" selected="selected">5公里范围内查找</option>
								<option value="10">10公里范围内查找</option>
								<option value="15">15公里范围内查找</option>
								<option value="20">20公里范围内查找</option>
							</select>
						</div>
					</div>
	     		</div>
	     		<div class="modal-sj" id="paidanDrivers" style="200px;height:auto;">
	     		</div>
	     	</li>
	    </ul>
	  	</div>   
    </div>
  </div>
</div>

<!--修改订单金额-->
	<#if order.status==5>
    <div class="form-horizontal">
        <div class="modal fade" id="dialog_updateRealMoney" style="padding-top:100px;">
            <div class="modal-dialog" style="width:800px;">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">修改订单金额</h4>
                    </div>
                    <div class="modal-body">
                        <form id="modify_form">
                            <input type="hidden" name="id" value="${order.id}" />
                            <div class="form-group">
                                <label class="col-sm-2 control-label">修改后金额：</label>
								<#if order.preAndAfterPayType??>
									<#if order.preAndAfterPayType?index_of("优惠券")!=-1>
                                        <div class="col-sm-3">
                                            <div class="input-group">
                                                <div class="input-group-addon">优惠券</div>
                                                <input class="form-control" type="number" id="couponMoney" name="couponMoney" min="0" value="${order.couponMoney?string("#.##")}" required />
                                            </div>
                                        </div>
									</#if>
									<#if order.preAndAfterPayType?index_of("代付")!=-1>
                                        <div class="col-sm-3">
                                            <div class="input-group">
                                                <div class="input-group-addon">代付</div>
                                                <input class="form-control" type="number" id="cashMoney" name="cashMoney" min="0" value="${order.realPay?string("#.##")}" required />
                                            </div>
                                        </div>
									</#if>
									<#if order.preAndAfterPayType?index_of("签单")!=-1>
                                        <div class="col-sm-3">
                                            <div class="input-group">
                                                <div class="input-group-addon">签单</div>
                                                <input class="form-control" type="number" id="signMoney" name="signMoney" min="0" value="${order.signMoney?string("#.##")}" required />
                                            </div>
                                        </div>
									</#if>
									<#if order.preAndAfterPayType?index_of("余额")!=-1>
                                        <div class="col-sm-3">
                                            <div class="input-group">
                                                <div class="input-group-addon">余额</div>
                                                <input class="form-control" type="number" id="balanceMoney" name="balanceMoney" min="0" value="${order.balanceMoney?string("#.##")}" required />
                                            </div>
                                        </div>
									</#if>
									<#if order.preAndAfterPayType?index_of("支付宝")!=-1>
                                        <div class="col-sm-3">
                                            <div class="input-group">
                                                <div class="input-group-addon">支付宝</div>
                                                <input class="form-control" type="number" id="alipayMoney" name="alipayMoney" min="0" value="${order.alipayMoney?string("#.##")}" required />
                                            </div>
                                        </div>
									</#if>
									<#if order.preAndAfterPayType?index_of("微信")!=-1>
                                        <div class="col-sm-3">
                                            <div class="input-group">
                                                <div class="input-group-addon">微信</div>
                                                <input class="form-control" type="number" id="weixinMoney" name="weixinMoney" min="0" value="${order.weixinMoney?string("#.##")}" required />
                                            </div>
                                        </div>
									</#if>
								</#if>

                                <label class="col-sm-2 control-label">原金额：${order.realPay?string("#.##")}</label>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">修改原因：</label>
                                <div class="col-sm-8">
                                    <textarea class="form-control" cols="20" id="dialog_modifyCash_content" name="content" rows="2" required></textarea>
                                </div>
                            </div>
                            <hr/>
                            <h5 class="modal-title">填写该订单所对应服务人员和客户的余额变动，<font color="red">点击"+"或"-"使余额增加或减少</font></h5>

                            <div class="form-group" style="margin-top:20px;">
                                <label class="col-sm-3 control-label">服务人员余额：</label>
                                <div class="col-sm-5 input-group">
                                    <span class="input-group-btn"><button id="driver_virtual_plusminus" type="button" class="btn btn-default" title="'+'为增加余额，'-'为减少余额"><span class="glyphicon glyphicon-plus"></span></button></span>
                                    <input type="hidden" id="driverPlusMinus" name="driverPlusMinus" value="0">
                                    <input class="form-control" id="driverMoney" name="driverMoney" type="number" min="0" value="0" required placeholder="+为增加余额，-为减少余额"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">客户余额：</label>
                                <div class="col-sm-5 input-group">
                                    <span class="input-group-btn"><button id="member_virtual_plusminus" type="button" class="btn btn-default" title="'+'为增加余额，'-'为减少余额"><span class="glyphicon glyphicon-plus"></span></button></span>
                                    <input type="hidden" id="memberPlusMinus" name="memberPlusMinus" value="0">
                                    <input class="form-control" id="memberMoney" name="memberMoney" type="number" min="0" value="0" required placeholder="+为增加余额，-为减少余额"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">公司：</label>
                                <div class="col-sm-5 input-group">
                                    <p class="form-control-static" id="companyMoney"></p>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" id="ok_modal_updateRealMoney">提交</button>
                        <button type="button" class="btn btn-default" id="close_modal_updateRealMoney">关闭</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div>
    </div>
	</#if>
</@override>
<@override name="footer">
<script type="text/javascript">
     var orderId = ${order.id};
     window.daijia = {ctx : '${ctx}',lng : '${lng?if_exists}', lat : '${lat?if_exists}'};
</script>
<script src="//api.map.baidu.com/api?v=2.0&ak=AuNk3YS21DSmHEEvIFDf9dbD" type="text/javascript"></script> 
<script src="//api.map.baidu.com/library/DistanceTool/1.2/src/DistanceTool_min.js" type="text/javascript"></script>
<script src="//api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js" type="text/javascript"></script>
<script src="${ctx}/assets/js/freight/detail.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
        function changeCompanyMoney(){
            var driverMoney=$("#driverMoney").val();
            var wxMoney=$("#wxMoney").val();

            if(null!=driverMoney){
                if($("#driverPlusMinus").val()==1){
                    driverMoney=Number(driverMoney)*(-1);
                }
                driverMoney=driverMoney*(-1);
            }

            var companyMoney=driverMoney;

            if(null!=wxMoney){
                if($("#wxPlusMinus").val()==1){
                    wxMoney=Number(wxMoney)*(-1);
                }
                wxMoney=wxMoney*(-1);
                companyMoney+=wxMoney;
            }

            if(companyMoney>0){
                $("#companyMoney").html("+"+companyMoney);
            }
            else{
                $("#companyMoney").html("<font color='red'>"+companyMoney+"</font>");
            }
        }
        //修改订单金额开始
        $("#modifyCash").click(function(){
            $('#dialog_updateRealMoney').modal();
        });
        //余额  增加/减少
        $("#driver_virtual_plusminus").click(function(){
            if($(this).find("span").hasClass("glyphicon-plus")){
                $(this).find("span").removeClass("glyphicon-plus").addClass("glyphicon-minus");
                $("#driverPlusMinus").val(1);
            }
            else{
                $(this).find("span").removeClass("glyphicon-minus").addClass("glyphicon-plus");
                $("#driverPlusMinus").val(0);
            }
            changeCompanyMoney();
        });
        $("#member_virtual_plusminus").click(function(){
            if($(this).find("span").hasClass("glyphicon-plus")){
                $(this).find("span").removeClass("glyphicon-plus").addClass("glyphicon-minus");
                $("#memberPlusMinus").val(1);
            }
            else{
                $(this).find("span").removeClass("glyphicon-minus").addClass("glyphicon-plus");
                $("#memberPlusMinus").val(0);
            }
        });
        //金额改变
        $("#driverMoney").change(function(){
            changeCompanyMoney();
        });
        $("#wxMoney").change(function(){
            changeCompanyMoney();
        });

        $("#close_modal_updateRealMoney").click(function(){
            $('#dialog_updateRealMoney').modal("hide");
        });

        $("#ok_modal_updateRealMoney").click(function(){
            var reg=/^\+?[0-9][0-9]*(\.\d{1,2})?$/

            var message="";

            //优惠券
            if($("#couponMoney").length>0){
                if(!reg.test($("#couponMoney").val())){
                    $.scojs_message('无效的优惠券金额', $.scojs_message.TYPE_ERROR);
                    return;
                }
                message+="优惠券："+$("#couponMoney").val()+"元，";
            }

            //现金
            if($("#cashMoney").length>0){
                if(!reg.test($("#cashMoney").val())){
                    $.scojs_message('无效的现金金额', $.scojs_message.TYPE_ERROR);
                    return;
                }
                message+="现金："+$("#cashMoney").val()+"元，";
            }

            //签单
            if($("#signMoney").length>0){
                if(!reg.test($("#signMoney").val())){
                    $.scojs_message('无效的签单金额', $.scojs_message.TYPE_ERROR);
                    return;
                }
                message+="签单："+$("#signMoney").val()+"元，";
            }

            //余额
            if($("#balanceMoney").length>0){
                if(!reg.test($("#balanceMoney").val())){
                    $.scojs_message('无效的余额金额', $.scojs_message.TYPE_ERROR);
                    return;
                }
                message+="余额："+$("#balanceMoney").val()+"元，";
            }

            if(!reg.test($("#driverMoney").val())){
                $.scojs_message('无效的服务人员金额', $.scojs_message.TYPE_ERROR);
                return;
            }

            if(!reg.test($("#memberMoney").val())){
                $.scojs_message('无效的客户金额', $.scojs_message.TYPE_ERROR);
                return;
            }

            if($("#dialog_modifyCash_content").val()==""){
                $.scojs_message('请填写修改原因', $.scojs_message.TYPE_ERROR);
                return false;
            }

            if($("#driverPlusMinus").val()==0){
                message+="服务人员余额将增加"+$("#driverMoney").val()+"元，";
            }
            else{
                message+="服务人员余额将减少"+$("#driverMoney").val()+"元，";
            }
            if($("#memberPlusMinus").val()==0){
                message+="客户余额将增加"+$("#memberMoney").val()+"元。";
            }
            else{
                message+="客户余额将减少"+$("#memberMoney").val()+"元。";
            }

            var confirm = $.scojs_confirm({
                content: "确认要修改订单金额吗？"+message,
                action:function(){
                    $("#dialog_updateRealMoney").attr("disabled",true);
                    $.post('${ctx}/freight/updateRealMoney',$("#modify_form").serialize(),function(data){
                        if(data.success){
                            $.scojs_message('订单金额修改成功', $.scojs_message.TYPE_OK);
                            setTimeout(function(){
                                window.location.reload(true);
                            },1000);
                        } else {
                            $("#ok_modal_updateRealMoney").attr("disabled",false);
                            $.scojs_message(data.message, $.scojs_message.TYPE_ERROR);
                        }
                    },'json');
                }
            });
            confirm.show();

        });

    });



</script>
</@override>
<@extends name="../layout.ftl"/>